import axios from "./node_modules/axios/dist/esm/axios.min.js";

// 函数返回一个新的axios对象 axios===request
// 二次封装
const request = axios.create({
  baseURL: "http://127.0.0.1:3009",
  headers: {
    token: localStorage.token,
  },
});

export default request;
